#include <fstream>
#include <iostream>
#include <string>

using namespace std;

int main() {
    ifstream in("in.txt", ios::in);
    if (!in) {
        cout << "error opening file in.txt" << endl;
        return 0;
    }

    string word;
    while (in >> word) {
        cout << word << endl;
    }

    in.close();

    return 0;
}